home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Macintosh Tracker Source / Tracker Client Folder / CFastForwardButton.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-22  |  641 b   |  30 lines  |  [TEXT/KAHL]

  1. /* CFastForwardButton.c */
  2.  
  3. #include "CFastForwardButton.h"
  4. #include "LocationConstants.h"
  5. #include "CWindow.h"
  6. #include "CMyDocument.h"
  7.  
  8.  
  9. void                CFastForwardButton::IFastForwardButton(CMyDocument* TheDocument, CWindow* TheWindow)
  10.     {
  11.         LongPoint            LocalStart,LocalExtent;
  12.  
  13.         Document = TheDocument;
  14.         GetRect(FastForwardIconLocID,&LocalStart,&LocalExtent);
  15.         IPicture(LocalStart,LocalExtent,NormalFastForwardPictID,HilitedFastForwardPictID,
  16.             0,0,TheWindow,TheWindow);
  17.     }
  18.  
  19.  
  20. void                CFastForwardButton::DoEnter(void)
  21.     {
  22.         Document->DoFastForward(True);
  23.     }
  24.  
  25.  
  26. void                CFastForwardButton::DoLeave(void)
  27.     {
  28.         Document->DoFastForward(False);
  29.     }
  30.